package Homework.Top2;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("提交作业：");
        String name=in.next();
        int indext=name.indexOf(".");
        String style=name.substring(indext+1);
        if (style.equals("zip")||style.equals("rar")){
            System.out.println("格式正确，正在提交");
        }else {
            System.out.println("格式不正确，无法提交");
        }
    }
}
